A phrase used to describe someone who is extremely nervous, restless, or agitated, often because they are in a difficult or uncomfortable situation. The imagery comes from the idea of a cat trying to stand on a hot metal roof, unable to stay still due to the heat.